package com.ruoyi.cms.article.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.cms.article.domain.CmsArticle;
import com.ruoyi.cms.article.domain.CmsArticleTag;

import java.util.List;




public interface CmsArticleTagMapper extends BaseMapper<CmsArticleTag> {
    /**
     * 批量新增
     */
    public int batchArticleTag(List<CmsArticleTag> articleTagList);
    /**
     * 通过articleID删除article文件关联
     */
    public int deleteArticleTagByArticleId(Long articleId);
    /**
     * 批量删除article文件关联
     */
    public int deleteArticleTag(Long[] ids);
    /**
     * 查询文件列表
     */
    public List<CmsArticleTag> selectArticleTagList(Long articleId);
    /**
     * 通过tagId删除article文件关联
     */
    public int deleteArticleTagByTagId(Long tagId);
    /**
     * 通过tagId统计article数量
     */
    public int countArticleByTagId(Long tagId);
}
